package cn.bocweb.spinning.view.dialog;

import android.content.Context;
import android.os.Bundle;
import android.support.v7.app.AlertDialog;
import android.view.View;
import android.widget.Button;

import butterknife.Bind;
import butterknife.ButterKnife;
import cn.bocweb.spinning.R;
import cn.bocweb.spinning.util.DeviceUtil;

/**
 * Created by chenchangxing on 16/1/18.
 */
public class Test111Dialog extends AlertDialog {

    @Bind(R.id.btn_submit)
    Button btnSubmit;
    @Bind(R.id.btn_cancel)
    Button btnCancel;

    public Test111Dialog(Context context) {
        super(context);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_test);
        ButterKnife.bind(this);
        DeviceUtil.Log("onCreate");
    }

    @Override
    protected void onStart() {
        super.onStart();
        DeviceUtil.Log("onStart");
        btnCancel.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                dismiss();
            }
        });
    }

    @Override
    protected void onStop() {
        super.onStop();
        DeviceUtil.Log("onStop");
    }
}
